package com.eas.biz.dao.examResult.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.eas.biz.dao.examResult.dataobject.ExamResultDO;
import com.eas.biz.dao.examResult.interfaces.ExamResultDao;
import com.eas.biz.framework.BaseQuery;
import com.eas.biz.framework.dao.GenericDaoImpl;

@Repository("examResultDao")
public class ExamResultDaoImpl extends GenericDaoImpl<ExamResultDO> implements ExamResultDao {

    public ExamResultDO selectById(long id) {
        return selectById("ExamResult.selectById", id);
    }

    public long insert(ExamResultDO examResult) {
        return insert("ExamResult.insert", examResult);
    }

    public int deleteById(long id) {
        return deleteById("ExamResult.deleteById", id);
    }

    public int update(ExamResultDO examResult) {
        return update("ExamResult.update", examResult);
    }

    public List<ExamResultDO> selectByQuery(BaseQuery query) {
        return selectByQuery("ExamResult.selectByQuery", query);
    }

    public int countByQuery(BaseQuery query) {
        return countByQuery("ExamResult.countByQuery", query);
    }

    public int deleteByQuery(BaseQuery query) {
        return deleteByQuery("ExamResult.deleteByQuery", query);
    }
}
